package com;

public class JavaTeacher extends Worker{
    //请定义“Java讲师类”继承自“员工类

    public JavaTeacher(String name, String sex, int age) {
        super(name, sex, age);
    }

    @Override
    public void work() {
        System.out.println("我是Java讲师");
    }
}
